package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.IdleAffiliateCpaCommissionConfig;

/**
 * 闲鱼联盟CPA佣金配置Service接口
 * 
 * @author ruoyi
 */
public interface IIdleAffiliateCpaCommissionConfigService 
{
    /**
     * 查询闲鱼联盟CPA佣金配置
     * 
     * @param id 闲鱼联盟CPA佣金配置主键
     * @return 闲鱼联盟CPA佣金配置
     */
    public IdleAffiliateCpaCommissionConfig selectIdleAffiliateCpaCommissionConfigById(Long id);

    /**
     * 根据推广类型查询闲鱼联盟CPA佣金配置
     * 
     * @param promotionType 推广类型
     * @return 闲鱼联盟CPA佣金配置
     */
    public IdleAffiliateCpaCommissionConfig selectIdleAffiliateCpaCommissionConfigByPromotionType(Integer promotionType);

    /**
     * 查询闲鱼联盟CPA佣金配置列表
     * 
     * @param idleAffiliateCpaCommissionConfig 闲鱼联盟CPA佣金配置
     * @return 闲鱼联盟CPA佣金配置集合
     */
    public List<IdleAffiliateCpaCommissionConfig> selectIdleAffiliateCpaCommissionConfigList(IdleAffiliateCpaCommissionConfig idleAffiliateCpaCommissionConfig);

    /**
     * 新增闲鱼联盟CPA佣金配置
     * 
     * @param idleAffiliateCpaCommissionConfig 闲鱼联盟CPA佣金配置
     * @return 结果
     */
    public int insertIdleAffiliateCpaCommissionConfig(IdleAffiliateCpaCommissionConfig idleAffiliateCpaCommissionConfig);

    /**
     * 修改闲鱼联盟CPA佣金配置
     * 
     * @param idleAffiliateCpaCommissionConfig 闲鱼联盟CPA佣金配置
     * @return 结果
     */
    public int updateIdleAffiliateCpaCommissionConfig(IdleAffiliateCpaCommissionConfig idleAffiliateCpaCommissionConfig);

    /**
     * 批量删除闲鱼联盟CPA佣金配置
     * 
     * @param ids 需要删除的闲鱼联盟CPA佣金配置主键集合
     * @return 结果
     */
    public int deleteIdleAffiliateCpaCommissionConfigByIds(Long[] ids);

    /**
     * 删除闲鱼联盟CPA佣金配置信息
     * 
     * @param id 闲鱼联盟CPA佣金配置主键
     * @return 结果
     */
    public int deleteIdleAffiliateCpaCommissionConfigById(Long id);
} 